﻿using System;

namespace EcoSystem
{
    /// <summary>
    /// 格式化选项配置
    /// </summary>
    public class FormatOptions
    {
        /// <summary>
        /// 格式化类型处理名称
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 格式化名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 数值及日期类格式化表达式
        /// </summary>
        public string ValueFormat { get; set; }

        /// <summary>
        /// True显示值
        /// </summary>
        public string TrueValue { get; set; }

        /// <summary>
        /// False显示值
        /// </summary>
        public string FalseValue { get; set; }

        /// <summary>
        /// 前缀
        /// </summary>
        public string Prefix { get; set; }

        /// <summary>
        /// 后缀
        /// </summary>
        public string Suffix { get; set; }

        /// <summary>
        /// 显示小数位数（精度）
        /// </summary>
        public Nullable<int> Precision { get; set; }
    }
}
